package com.ssm.reader.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.pagehelper.Page;
import com.ssm.reader.entity.Book;
import com.ssm.reader.entity.Evaluation;

import java.util.List;

public interface EvaluationService {
    /*
    * 按图书编号查询有效短评
    *
    * */
    public List<Evaluation> selectByBookId(Long bookId);

    public List<Evaluation> paging(Integer page, Integer rows);

    /*3，在service接口中定义方法*/
    public List<Evaluation> selectPages();

    public Evaluation disableById(Long evaluationId,String reason);


}
